package com.ruoyi.report.controller.report;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.report.domain.HanZaiBusinessDetails;
import com.ruoyi.report.domain.HanZaiBuyHouse;
import com.ruoyi.report.domain.HanZaiCheckOutTheDetail;
import com.ruoyi.report.service.HanZaiCheckOutTheDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: 憨憨爱崽崽
 * Name: HanZaiCommissionStatisticsController 佣金管理
 * Date: 2022/5/7
 * Time: 2:45
 **/
@RestController
@RequestMapping("/commission_statistics")
public class HanZaiCommissionStatisticsController extends BaseController {
    @Autowired
    private HanZaiCheckOutTheDetailService checkOutTheDetailService;
    @RequestMapping("/statistics/list")
    public TableDataInfo getCommissionStatisticsList(HanZaiBuyHouse buyHouse){
        startPage();
        List<HanZaiCheckOutTheDetail> hanZaiCheckOutTheDetailsList = checkOutTheDetailService.queryCommissionStatisticsList(buyHouse);

        return getDataTable(hanZaiCheckOutTheDetailsList);
    }
}
